<?php
/**
 * ----------------------------------------
 * @link http://www.ruaby.com/
 * @copyright Copyright (c) 2016 RuabySoft
 * @license http://www.ruaby.com/license/
 *
 * @author 18/8/31 下午11:04
 */
namespace Zeke\Contracts\Net\Http\Server;


use Zeke\Contracts\Io\Socket\ServerContract;

interface Kernel
{


    public function __construct(callable $requestHandler);

    /**
     * 监听服务器
     *
     * @param ServerContract $server
     * @return mixed
     *
     *
     * @author <liu.bin@ruaby.com> 2018-08-31 23:05
     */
    public function listen(ServerContract $server);
}